added SSCLI 1.0
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / MFCSafeActiveX / MFCSafeActiveXPropPage.cpp
blob64d568faff6ede125125ceb95b56c7a1645bc5a3
1 #include "stdafx.h"
2 #include "MFCSafeActiveX.h"
3 #include "MFCSafeActiveXPropPage.h"
5 #ifdef _DEBUG
6 #define new DEBUG_NEW
7 #endif
9 IMPLEMENT_DYNCREATE(CMFCSafeActiveXPropPage, COlePropertyPage)
12 // Message map
13 BEGIN_MESSAGE_MAP(CMFCSafeActiveXPropPage, COlePropertyPage)
14 END_MESSAGE_MAP()
17 // Initialize class factory and guid
18 IMPLEMENT_OLECREATE_EX(CMFCSafeActiveXPropPage, "MFCSAFEACTIVEX.MFCSafeActiveXPropPage.1",
19 0xc8f3d57c, 0x42eb, 0x41f8, 0xb1, 0x2b, 0x56, 0xe5, 0x9e, 0xd0, 0x52, 0x43)
22 // CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPageFactory::UpdateRegistry -
23 // Adds or removes system registry entries for CMFCSafeActiveXPropPage
24 BOOL CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPageFactory::UpdateRegistry(BOOL bRegister)
26 if (bRegister)
27 return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
28 m_clsid, IDS_MFCSAFEACTIVEX_PPG);
29 else
30 return AfxOleUnregisterClass(m_clsid, NULL);
34 // CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPage - Constructor
35 CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPage() :
36 COlePropertyPage(IDD, IDS_MFCSAFEACTIVEX_PPG_CAPTION)
41 // CMFCSafeActiveXPropPage::DoDataExchange - Moves data between page and properties
42 void CMFCSafeActiveXPropPage::DoDataExchange(CDataExchange* pDX)
44 DDP_PostProcessing(pDX);
48 // CMFCSafeActiveXPropPage message handlers